package com.gxa.web_admin.controller.datavisualizationcontroller;
import com.gxa.common.R;
import com.gxa.modules.service.operationsservice.CockpitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;

@RestController
@RequestMapping("/cockpit")
public class CockpitController {
    @Autowired
    CockpitService cockpitService;

    @GetMapping("/selectVisitor")
    public R selectVisitor()
    {
        return cockpitService.selectVisitor();
    }
    @GetMapping("/selectPropertyFee")
    public R selectPropertyFee()
    {
        return cockpitService.selectPropertyFee();
    }
    @GetMapping("/selectIncome")
    public R selectIncome()
    {
        return cockpitService.selectIncome();
    }
    @GetMapping("/selectEquipmentMonitor")
    public R selectEquipmentMonitor()
    {
        return cockpitService.selectEquipmentMonitor();
    }
    @GetMapping("/selectFlow")
    public R selectFlow()
    {
        return cockpitService.selectFlow();
    }
    @GetMapping("/selectTenant")
    public R selectTenant()
    {
        return cockpitService.selectTenant();
    }
    @GetMapping("/selectEarnings")
    public R selectEarnings()
    {
        return cockpitService.selectEarnings();
    }
    @GetMapping("/selectRentRemind")
    public R selectRentRemind() throws ParseException {
        return cockpitService.selectRentRemind();
    }
}
